package com.zhengx.baselib;


import android.app.Application;
import android.content.res.Configuration;

/**
 * name：IApplication
 * class: 基础模块接口定义，用于统一模块的Application生命周期监听
 * author: zhengx
 * create_time: 2019/1/18
 */

public interface IApplication {
    /**
     * application 方法onCreate
     * @param application
     */
    void onCreate(Application application);
    /**
     * application 方法onTerminate
     * @param application
     */
    void onTerminate(Application application);
    /**
     * application 方法onConfigurationChanged
     * @param application
     */
    void onConfigurationChanged(Application application, Configuration newConfig);
    /**
     * application 方法onLowMemory
     * @param application
     */
    void onLowMemory(Application application);
    /**
     * application 方法onTrimMemory
     * @param application
     */
    void onTrimMemory(Application application, int level);
}
